import {createRouter,createWebHistory} from 'vue-router'

// 导入组件
import LoginVue from '@/views/login.vue'
import LayoutVue from '@/views/Layout.vue';

//定义路由关系
const routes = [
    {path:'/login',component:LoginVue},
    {path:'/',component:LayoutVue,redirect:'/article/manage',
    children:[
        // {path:'/article/category',component:ArticleCategoryVue},

    ]
    }
]

// 创建路由器
const router = createRouter({
    history:createWebHistory(),
    routes:routes
})

// 导出路由
export default router